package org.fude.dao;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import org.fude.entity.User;

public interface UserMapper {
	
	@Insert("insert into "
			+ "user(uname,pwd,tel,name,sex,status) "
			+ "values(#{uname},#{pwd},#{tel},#{name},#{sex},#{status})")
	public int addUser(User user);
	
	@Select("select tel from user where tel = #{tel}")
	public String findByTel(String tel);
}
